	<?php $ci=&get_instance();?>
	<table>
		<thead>
			<tr>
				<th><?php echo lang('escort_be_escort_id_label'); ?></th>
				<th class="collapse"><?php echo lang('escort_be_escort_username_label'); ?></th>
				<th class="collapse"><?php echo lang('escort_be_escort_email_label'); ?></th>
				<th class="collapse"><?php echo lang('escort_be_escort_address_label'); ?></th>
				<th class="collapse"><?php echo lang('escort_be_escort_join_date_label'); ?></th>
				<th class="collapse"><?php echo lang('escort_be_escort_status_label'); ?></th>
				<th class="collapse"><?php echo lang('escort_be_escort_point_label'); ?></th>
				<th class="collapse"><?php echo lang('escort_be_escort_order_controll_label'); ?></th>
				<th class="collapse"><?php echo lang('escort_be_escort_commission_label'); ?></th>
				<th class="collapse"><?php echo lang('escort_be_escort_site_ref_label'); ?></th>
				<th width="80"></th>
			</tr>
		</thead>
		<tfoot>
			<tr>
				<td colspan="11">
					<div class="inner"><?php $this->load->view('admin/partials/pagination'); ?></div>
				</td>
			</tr>
		</tfoot>
		<tbody>
			<?php foreach ($escorts as $escort) :
				//$userInfo = $escort->userInfo;
				$userInfo = $ci->user_entity->init('id', $escort->user_id); 
			?>
			
				<tr>
					<td><?php echo $escort->id; ?></td>
					<td class="collapse"><?php echo $escort->escort_name?></td>
					<td class="collapse"><?php echo $escort->escort_email?></td>
					<td class="collapse"><?php echo $escort->escort_address?></td>
					<td class="collapse"><?php echo format_date($userInfo->created_time ); ?></td>
					<td class="collapse">
					<?php 
					if($escort->published){
						echo lang('escort_be_escort_published_label');
					}else{
						echo lang('escort_be_escort_unpublished_label');
					}
					?>
					</td>
					<td class="collapse">
					<?php echo anchor(site_url().'admin/be_escort/log_point/'.$escort->id, $escort->point, array('class'=>'btn orange view-statistics', 'id' => 'view-statistics-'.$escort->id)); ?>
					</td>
					<td class="collapse"><?php echo $escort->order_controll?></td>
					<td class="collapse"><?php echo $userInfo->commission?></td>
					<td class="collapse"><?php echo $userInfo->site_ref?></td>
					<td>
						<?php echo anchor('admin/be_escort/edit/' . $escort->id, lang('global:edit'), 'class="btn orange edit"'); ?>
					</td>
				</tr>
			<?php endforeach; ?>
		</tbody>
	</table>